import javax.vecmath.*;


public class Ray extends Line{
	
	public Ray(Point3d origin, Point3d direction){
		super(origin, direction);
	}
	
	public Boolean pointBelongsToRay( Point3d p ){
		return true;
	}
	
	public Point3d generatePoint(double t){
		Vector3d v = new Vector3d();
		v.scale( t, super.getVersor() );
		return new Point3d(v.x, v.y, v.z);
	}
	
	public String toString(){
		return "Ray info = \n\tOrigin = " + super.getPointA() + "\n\tVersor = " + super.getVersor();
	}
}

